/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.iboss.service.sc;

import net.dgg.dggcloud.service.iboss.dao.sc.SuspendDao;
import net.dgg.dggcloud.service.jrcrm.service.cms.TreeBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class SuspendService {
    @Resource
    private SuspendDao suspendDao;
    @Autowired
    private TreeBookService treeBookService;

    /**
     * @describe: TODO 查询暂缓页面列表数据
     * @param:
     * @return:
     * @throw:
     * @creat_user: 黄文娟
     * @creat_date: 2017/11/28
     * @creat_time: 8:57
     **/
    public List<Map> queryAllSuspendList(Map map){
        List<Map> list = suspendDao.queryAllSuspendList(map);
        return list;
    }


    /**
     * @describe: TODO 统计当前页面数据条数
     * @param:
     * @return:
     * @throw:
     * @creat_user: 黄文娟
     * @creat_date: 2017/11/28
     * @creat_time: 8:58
     **/
    public Integer countAllSuspendByMap(Map map){
        return suspendDao.countAllSuspendByMap(map);
    }
}
